package ModelLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class AddressBookTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class AddressBookTest
{
    /**
     * Default constructor for test class AddressBookTest
     */
    public AddressBookTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }

    @Test
    public void addPerson()
    {
        ModelLayer.AddressBook addressB1 = new ModelLayer.AddressBook();
        addressB1.addPerson(1, "Mig", "Her", "9000", "Aalborg", "88888888");
    }

    @Test
    public void getPerson()
    {
        ModelLayer.AddressBook addressB1 = new ModelLayer.AddressBook();
        addressB1.getPerson(1);
    }

    @Test
    public void updatePerson()
    {
        ModelLayer.AddressBook addressB1 = new ModelLayer.AddressBook();
        addressB1.updatePerson(1);
    }

    @Test
    public void removePerson()
    {
        ModelLayer.AddressBook addressB1 = new ModelLayer.AddressBook();
        addressB1.removePerson(1);
    }
}




